home *** CD-ROM | disk | FTP | other *** search
/ Freelog 22 / freelog 22.iso / BAS / Graphism / Render32 / DEMO / NORMAL.POV < prev    next >
Text File  |  1996-02-29  |  1KB  |  42 lines

  1. // Persistence Of Vision Raytracer version 2.0 sample file.
  2.  
  3. #include "stage1.inc"
  4.  
  5. #declare Radius =5
  6. #declare RowSpace=1.35
  7. #declare ColSpace=1.25
  8. #declare Dist=0.9-Radius
  9. #declare Row2=-Dist
  10. #declare Row1=Row2+Radius*RowSpace*2
  11. #declare Col1= -Radius*ColSpace*2
  12. #declare Col2= Col1+Radius*ColSpace*2
  13. #declare Col3= Col2+Radius*ColSpace*2
  14.  
  15. camera{Camera1 translate <0,Row1-Radius*RowSpace,-240>}
  16.  
  17. #declare Thing=
  18. object {
  19.    UnitBox
  20.    scale Radius
  21.    pigment {Gray75}
  22.    finish  {phong 0.8}
  23. }
  24.  
  25. object { Thing normal {bumps  0.6} translate <Col1 ,Row1 ,Dist> }
  26.  
  27. object {
  28.    Thing
  29.    normal {
  30.       bump_map { gif "test.gif" bump_size 1.0 use_index }
  31.       translate -(x+y)/2
  32.       scale 2*Radius
  33.    }
  34.    translate <Col2 ,Row1 ,Dist>
  35. }
  36.  
  37. object { Thing normal {dents  0.6}    translate <Col3 ,Row1 ,Dist> }
  38. object { Thing normal {ripples  0.6}  translate <Col1 ,Row2 ,Dist> }
  39. object { Thing normal {waves    0.6}  translate <Col2 ,Row2 ,Dist> }
  40. object { Thing normal {wrinkles 0.6}  translate <Col3 ,Row2 ,Dist> }
  41.  
  42.